function selectAll() {
	var arrObj = document.all;
	for (var i = 0; i < arrObj.length; i++) {

		if (typeof arrObj[i].type != "undefined"
				&& arrObj[i].type == 'checkbox')
			arrObj[i].checked = true;
	}
}

function unSelectAll() {
	var arrObj = document.all;
	for (var i = 0; i < arrObj.length; i++) {
		if (typeof arrObj[i].type != "undefined"
				&& arrObj[i].type == 'checkbox')
			arrObj[i].checked = false;
	}
}

var jmz = {};
jmz.GetLength = function(str) {
    ///<summary>获得字符串实际长度，中文2，英文1</summary>
    ///<param name="str">要获得长度的字符串</param>
    var realLength = 0, len = str.length, charCode = -1;
    for (var i = 0; i < len; i++) {
        charCode = str.charCodeAt(i);
        if (charCode >= 0 && charCode <= 128) realLength += 1;
        else realLength += 2;
    }
    return realLength;
};

/*
 * 跳页
 */
function skipPage(value) {
	if(value <= 0) {
		alert("当前为第一页！");
		return;
	}
	if(value > document.getElementById("pageBean.totalPage").value) {
		alert("当前为最后一页！");
		return;
	}
	document.getElementById("pageBean.currPage").value = value;
	document.forms[0].submit();
}